import { Module, Logger } from '@nestjs/common';
import { BookService } from './book.service';
import { BookController } from './book.controller';
import { DbModule } from '../db/db.module';

@Module({
  imports: [
    DbModule.register({
      path: 'books.json',
    }),
  ],
  controllers: [BookController],
  providers: [
    BookService,
    {
      provide: 'Logger',
      useValue: new Logger(BookModule.name),
    },
  ],
})
export class BookModule {}
